-- GENERATED SPELL FOR [Mariner Moonblade] --


function spell0_25021(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25021', 5287, 1)
end

function Sorts_25021(pUnit, Event)
local choix_sorts_25021 = math.random(0, 0)
if choix_sorts_25021 == 0 then
pUnit:RegisterEvent('spell0_25021', 1, 1)
end
end

function mob25021_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25021', math.random(1500, 3000), 1)
end

function mob25021_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25021_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25021_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25021, 1, 'mob25021_Action')
RegisterUnitEvent(25021, 2, 'mob25021_Leave')
RegisterUnitEvent(25021, 3, 'mob25021_Kill')
RegisterUnitEvent(25021, 4, 'mob25021_Die')
